package com.my.goodsmanage.entity.form;

import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * @author 徐佳辉
 * @date 2020/8/15 21:48
 */
@Data
@ToString
public class LoginForm {

    @NotBlank(message = "用户名或手机不能为空")
    @Size(min = 3,max = 15,message = "用户名长度限制3-15")
    private String name;
    @NotBlank(message = "密码不能为空")
    private String password;
    @NotBlank(message = "验证码不能为空")
    private String check;
}
